package com.system.ad.service.impl;

import com.system.ad.utils.PageUtils;
import com.system.ad.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.system.ad.dao.UnitKeywordDao;
import com.system.ad.entity.UnitKeywordEntity;
import com.system.ad.service.UnitKeywordService;


@Service("unitKeywordService")
public class UnitKeywordServiceImpl extends ServiceImpl<UnitKeywordDao, UnitKeywordEntity> implements UnitKeywordService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UnitKeywordEntity> page = this.page(
                new Query<UnitKeywordEntity>().getPage(params),
                new QueryWrapper<UnitKeywordEntity>()
        );

        return new PageUtils(page);
    }

}